package com.hnuit.service;

import com.hnuit.dao.UserDao;
import com.hnuit.entity.User;

public class UserServiceImpl implements UserService {
    //声明userDao对象
    private UserDao userDao;

    // 添加setter方法用于设置userDao对象
    public void setUserDao(UserDao userDao) {
        this.userDao = userDao;
    }

    @Override
    public boolean login(User user) {
        return userDao.login(user);
    }
}